package com.wu.project.admin.property;

/**
 * 常量类
 * @author xuan
 */
public class Constants {

    public static final String USER_SESSION_KEY = "user";

    public static final String USER_ROLE_KEY = "role";

    public static final Integer SUCCESS_CODE = 200;

    public static final String SUCCESS_MSG = "request success";

    public static final Integer ERROR_CODE = 400;

    public static final String ERROR_MSG = "request fail";

    public static final Integer AUTH_ERROR_CODE = 300;

    public static final String AUTH_ERROR_MSG = "authorized error";

    public static final String NULL_STRING = "";

    public static final String STRING_SPLIT = ",";

    public static final String STRING_SPLIT_END = ".";

    public static final String APPLICATION_JSON_UTF8 = "application/json;charset=UTF-8";

    // 日志类型 普通类型
    public static final Integer DEFAULT_TYPE = 0;
    // 日志类型 请求类型
    public static final Integer REQUEST_TYPE = 1;
    // 日志类型 操作类型
    public static final Integer OPERATOR_TYPE = 2;
    // 日志类型 异常类型
    public static final Integer EXCEPTION_TYPE = 3;
}
